using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel.PDC
{
    public class Make
    {
        public string Name { get; set; }

        private List<Model> _models;
        public Make()
        {
            _models = new List<Model>();
        }

        public IEnumerable<Model> Models { get { return _models; } }

        public void AddModel(Model model)
        {
            if (model == null) throw new ArgumentNullException("model");
            if (!_models.Contains(model))
            {
                _models.Add(model);
            }
        }
    }
}